<?php
declare (strict_types = 1);

namespace app\index\controller;

use app\BaseController;
use think\App;

class Base extends BaseController
{
    public function __construct(App $app)
    {
        parent::__construct($app);
    }

    public function insertTime($data)    //统一的加入修改删除时间
    {
        $data['create_time'] = date("Y-m-d H:i:s");
        $data['update_time'] = date("Y-m-d H:i:s");

        return $data;
    }

}
